package cn.rengy.web.framework.wxmp.app;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.rengy.lang.ResultEntity;
import cn.rengy.web.framework.wxmp.WxAppService;

@Controller
@RequestMapping(value = "/authenticated/wxapp")
public class WxAppController {

	@Autowired
	private WxAppService wxAppService;
	
	@RequestMapping(value="/updateWelcomeMsg",method = RequestMethod.POST)
	@ResponseBody
	public ResultEntity updateWelcomeMsg (@RequestBody Map<String,Object> paramMap) {
		this.wxAppService.updateWelcomeMsg(paramMap);
		return ResultEntity.ok();
	}
}
